package com.vshining.cryptoki;

/**
 * @author Shining Wang <shiningwang@vshining.com>
 */
@SuppressWarnings("unused")
public class CryptokiException extends Exception {
    private long rv;

    public CryptokiException(long rv) {
        this.rv = rv;
    }

    @Override
    public String getMessage() {
        return "(CK_RV: " + ToString.toHexString((int) rv) + ")";
    }

}
